package com.jackie.coupon.template;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;

/**
 * Application
 *
 * @author Jackie Hou
 * @date 2023/11/16 14:06
 * @version 1.0
 *
 * 说明：
 * @EnableJpaAuditing引入，是为了能在执行时jpa自动写入当前时间。在需要的实体类上，如下：
 *
 * @EntityListeners(AuditingEntityListener.class)
 * class A {
 *
 *     @CreatedDate
 *     @Column(name = "created_time", nullable = false)
 *     private Date createdTime;
 * }
 */
@SpringBootApplication
@ComponentScan(basePackages = {"com.jackie"})
@EnableJpaAuditing
public class TemplateApplication {

    public static void main(String[] args) {
        SpringApplication.run(TemplateApplication.class, args);
    }
}
